package cn.edu.sjtu.se.dslab.dao;

import cn.edu.sjtu.se.dslab.action.bean.PageBean;
import cn.edu.sjtu.se.dslab.component.aadl.AADLModel;
import cn.edu.sjtu.se.dslab.exception.DBException;

public interface IAADLModelDao {
	
	public void save(AADLModel aadlModel);

	public boolean delete(AADLModel aadlModel);

	public boolean deleteById(long id);

	public boolean deleteByUri(String uri);

	public void update(AADLModel aadlModel);

	public PageBean<AADLModel> queryByPageNum(int pageNo)
			throws DBException;

	public AADLModel queryById(long id);

	public AADLModel queryByUri(String uri);

	public boolean checkUri(String uri);
}
